﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QuickDev.SSO
{
    /// <summary>
    /// Constants
    /// </summary>
    internal static class Constants
    {
        #region SsoEngine
        internal const string TokenCookieName = "SSOAuthenticateService_Token";
        internal const string AuthUrl = "Auth_Url";
        internal const string SSOUrl = "SSO_Url";
        internal const string LogoutUrl = "Logout_Url";
        internal const string RequestToken = "RequestToken";
        internal const string ResponseToken = "ResponseToken";
        internal const string SeedChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
        internal const string SeedSession = "SSOAuthenticateSession";
        #endregion

        #region SsoCipher
        internal const string Des3IV = "0A0B0C0D0E0F0A0B0C0D0E0F0A0B0C0D0E0F0A0B0C0D0E0F";
        internal const string Des3KeyName = "APP_KEY";
        internal const char Delimiter = '$';
        #endregion

        #region InValid

        internal const string InValidTicket = "InValid Ticket";
        internal const string InValidParameter = "InValid Parameter";
        internal const string InValidService = "InValid Service";

        #endregion
    }

    /// <summary>
    /// Summary for the ProtocolPrefix class
    /// </summary>
    public class ProtocolPrefix
    {
        /// <summary>
        /// HTTP
        /// </summary>
        public const string HTTP = "http://";
        /// <summary>
        /// HTTPS
        /// </summary>
        public const string HTTPS = "https://";
    }

    /// <summary>
    /// Summary for the ServerVariable class
    /// </summary>
    public class ServerVariable
    {
        /// <summary>
        /// SERVER_NAME
        /// </summary>
        public const string SERVER_NAME = "SERVER_NAME";
        /// <summary>
        /// SERVER_PORT
        /// </summary>
        public const string SERVER_PORT = "SERVER_PORT";
        /// <summary>
        /// SERVER_PORT_SECURE
        /// </summary>
        public const string SERVER_PORT_SECURE = "SERVER_PORT_SECURE";
    }

    /// <summary>
    /// Summary for the Ports class
    /// </summary>
    public class Ports
    {
        /// <summary>
        /// HTTP
        /// </summary>
        public const string HTTP = "80";
        /// <summary>
        /// HTTPS
        /// </summary>
        public const string HTTPS = "443";
    }
}
